<@page.html title="配送商品出库汇总">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
  <div class="search">
    <form id="fm_query" action="_list">
      <dl>
        <dt>收货部门</dt>
        <dd><script>shopsel('shopCode');</script></dd>
        <dt>发货日期</dt>
        <dd><input type="text" id="dateFrom" class="date" name="dateFrom" value="" onfocus="cal(this);" />
          ~ <input type="text" id="dateTo" class="date" name="dateTo" value="" onfocus="cal(this);" /></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <dd class="button"><input type="button" value="Excel导出" onclick="download();"></dd>
      </dl>
    </form>
  </div>
  <div id="div_list"></div>
<script type="text/javascript">query();</script>
<script type="text/javascript">
function download(){
    var shopCode = document.getElementById("isel_shopcode").value;
    var dateFrom = document.getElementById("dateFrom").value;
    var dateTo = document.getElementById("dateTo").value;
	window.location.href='${_appPath!}/purcTranSendRpt/_excelexport?shopCode='+shopCode +'&dateFrom='+dateFrom +'&dateTo='+dateTo;
}
</script>
</@page.html>